package com.yangyouqi.dataobject;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;

/**
 * 商品实体类
 * @author 杨友奇
 * @Time 2018/5/26
 */
@Entity
@DynamicUpdate
@Data
public class ProductInfo {
    @Id
    private String  productId ;  //商品ID

    private String  productName; //商品名称

    private BigDecimal productPrice; //单价

    private Integer productStock; //库存

    private String  productDescription; //商品描述

    private String  productIcon; //小图

    private Integer productStatus; //状态，0正常，1下架

    private Integer categoryType; //类目编号
}
